<template>
	<view class="personalcenter">
		<view class="personalcenter-con">
			<view class="f-section">
				<view class="slide-link" @click="navTo('/pages/my/group')">
					<view class="join-a-group">
						<image class="join-img" src="../../static/my/pt.png" mode=""></image>
						<text>我的拼团</text>
					</view>
					<image class="group-img" src="../../static/fan.png" mode=""></image>
				</view>
			</view>
			<view class="f-section">
				<view class="slide-link" @click="navTo('/pages/my/receive')">
					<view class="join-a-group">
						<image class="join-img" src="../../static/my/pt.png" mode=""></image>
						<text>领券中心</text>
					</view>
					<image class="group-img" src="../../static/fan.png" mode=""></image>
				</view>
			</view>
			<view class="f-section">
				<view class="slide-link"@click="navTo('/pages/address/manage')">
					<view class="join-a-group">
						<image class="join-img" src="../../static/my/pt.png" mode=""></image>
						<text>地址管理</text>
					</view>
					<image class="group-img" src="../../static/fan.png" mode=""></image>
				</view>
			</view>
			<view class="f-section">
				<view class="slide-link" @click="navTo('/pages/my/my-collection')">
					<view class="join-a-group">
						<image class="join-img" src="../../static/my/pt.png" mode=""></image>
						<text>我的收藏</text>
					</view>
					<image class="group-img" src="../../static/fan.png" mode=""></image>
				</view>
			</view>
			<view class="f-section">
				<view class="slide-link" @click="navTo('/pages/service/service')">
					<view class="join-a-group">
						<image class="join-img" src="../../static/my/pt.png" mode=""></image>
						<text>在线客服</text>
					</view>
					<image class="group-img" src="../../static/fan.png" mode=""></image>
				</view>
			</view>
			<view class="f-section">
				<view class="slide-link" @click="navTo('')">
					<view class="join-a-group">
						<image class="join-img" src="../../static/my/pt.png" mode=""></image>
						<text>关于我们</text>
					</view>
					<image class="group-img" src="../../static/fan.png" mode=""></image>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data(){
			return{
				
			}
		},
		methods:{
			navTo(url) {
				// if (!this.hasLogin) {
				// 	url = '/pages/public/login';
				// }
				uni.navigateTo({
					url
				})
			},
		}
	}
</script>

<style lang="scss">
	
	.personalcenter{
		padding: 0 20rpx;
		margin-bottom: 20rpx;
		
		
		.personalcenter-con{
			padding:0 24rpx;
			background-color: #FFFFFF;
			border:1rpx solid rgba(255,255,255,1);
			border-radius:16rpx;
			
			.f-section {
				padding:31rpx 0rpx;
				background-color: #fff;
			
				.slide-link {
					width: 100%;
					display: flex;
					align-items: center;					
					
					.join-a-group{
						width: 100%;
						display: flex;
						align-items: center;
					
						
						.join-img{
							width: 32rpx;
							height: 32rpx;
						}
						text{
							margin-left: 25rpx;
							font-size:26rpx;
							font-family:PingFang SC;
							font-weight:500;
							color:rgba(77,77,77,1);
						}
					}
					.group-img{
						width: 8rpx;
						height: 16rpx;
					}
				}
			}
		}
	}
	
</style>
